import request from '../../utils/httpRequest'

const wareinfo = '/ware/ware/wareinfo'

// 查询list
export function getWareInfoList (param) {
  return request({
    url: `${wareinfo}/list`,
    method: 'get',
    param
  })
}

// 根据ids批量删除
export function deleteWareInfoByIds (data) {
  return request({
    url: `${wareinfo}/delete`,
    method: 'delete',
    data
  })
}

// 根据id查询
export function getWareInfoById (id) {
  return request({
    url: `${wareinfo}/info/${id}`,
    method: 'get'
  })
}

// 新增
export function saveWareInfo (data) {
  return request({
    url: `${wareinfo}/save`,
    method: 'post',
    data
  })
}

// 修改
export function updateWareInfo (data) {
  return request({
    url: `${wareinfo}/update`,
    method: 'put',
    data
  })
}
